	<script type="text/javascript">
		//<![CDATA[
	

		function toggleInfo(id) {
		// abrir / cerrar div.lamasinfo y anadir/quitar class "open" al/del enlace (a)
			$('#info_'+id).slideToggle('fast');
			$('#anchor_info_'+id).html('cerrar');
			$('#anchor_info_'+id).toggleClass('open');
			}


		function prepareDateForCountDown(strDate){
			if(strDate == null||strDate == ""){
				alert("missing date in coupon");
				return;
			}
			var a = strDate.split(" ")[0];
			var b = strDate.split(" ")[1];
			var dp = a.split("-");
			var hp = b.split(":");
			var date = new Date(dp[0], (dp[1] - 1) ,dp[2],hp[0],hp[1],hp[2]);
			return date;
		}
		function highlightLast12h(periods) {
			if ($.countdown.periodsToSeconds(periods) < 43200) {
				$(this).addClass('highlight');
			}
		}
	//]]>
	</script>